<template>
  <div class="recommend">
    <div class="recommendItem" v-for="(item, index) in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" class="recommendImg">
        <div class="recommendText">{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    props:{
      recommends:{
        type:Array,
        default(){
          return []
        }
      }
    }
  }
</script>

<style>
  .recommend{
    text-align: center;
    display: flex;
    width: 100%;
    padding: 10px 0 20px;
    border-bottom: 8px solid #eee;
  }
  .recommendItem{
flex: 1;
/* padding: 10px; */
    margin-top: 10px;
  }
  .recommendImg{
    width: 80%;
  }
  .recommendText{
    margin-top: 10px;
  }
</style>
